const {
    defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    devServer: {
        port: 7777,
        proxy: {
            "/api": {
                target: "https://api.iynn.cn/film/api/v1",
                changeOrigin: true,
                pathRewrite: {
                    "^/api": "",
                },
            },
            "/front": {
                target: 'http://localhost:7779/front/api/user',
                changeOrigin: true,
                pathRewrite: {
                    "^/front": "",
                },
            }
        },

    }
})